package com.cn.kabalifeuser.ui.integral.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cn.kabalifeuser.R;
import com.cn.kabalifeuser.ui.integral.bean.DetailsInfoBean;

import java.util.List;

/**
 * Created by 晓林 on 2020/9/21.
 * function:
 */
public class CommodityParamsAdapter extends BaseQuickAdapter<DetailsInfoBean.ResultBean.AttrArrBean, BaseViewHolder> {

    public CommodityParamsAdapter(int layoutResId, @Nullable List<DetailsInfoBean.ResultBean.AttrArrBean> data) {
        super(layoutResId, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, final DetailsInfoBean.ResultBean.AttrArrBean item) {
        helper.setText(R.id.tv_name, item.getIs_key())
                .setText(R.id.tv_content, item.getIs_val());
    }
}
